public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.add(7);
        myArrayList.mytoString();
        myArrayList.add(8,10);
        myArrayList.mytoString();
        System.out.println(myArrayList.contains(5));
        System.out.println(myArrayList.indexOf(5));
        try{
            System.out.println(myArrayList.get(100));
        }catch(RuntimeException e){
            e.printStackTrace();
        }
        System.out.println(myArrayList.size());
        myArrayList.remove(1);
        myArrayList.mytoString();
    }
}
